#include "qcustomoperatioeditordialog.h"
#include "ui_qcustomoperatioeditordialog.h"

QCustomOperatioEditorDialog::QCustomOperatioEditorDialog(QWidget *parent) :
    QBaseDialog(parent),
    ui(new Ui::QCustomOperatioEditorDialog)
{
    ui->setupUi(this);
    setProperty("no-ManhattanStyle",true);
}

QCustomOperatioEditorDialog::~QCustomOperatioEditorDialog()
{
    delete ui;
}

void QCustomOperatioEditorDialog::on_okBtn_clicked()
{
    m_code=ui->plainTextEdit->toPlainText();
    m_period=ui->spinBox->value();
    close();
}

void QCustomOperatioEditorDialog::on_cancelBtn_clicked()
{
    close();
}

QString QCustomOperatioEditorDialog::get_code()
{
    return m_code;
}

int QCustomOperatioEditorDialog::get_period()
{
    return m_period;
}
